﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="ExpertDetails.aspx.cs" Inherits="Page_Expert_ExpertOfDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .CommentTextboxStyle
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div class="PageTitleStyle">
            <asp:Image ID="bgpicEventsInfo" runat="server" ImageUrl="~/Images/Experts/bgpicExpertInfoTop.png" />
        </div>
        <div id="ExpertDetails">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:DetailsView ID="dvExpertInfo" runat="server" AutoGenerateRows="False" BorderColor="Black"
                    BorderStyle="Solid" BorderWidth="1px" Width="500px">
                    <Fields>
                        <asp:BoundField HeaderText="FirstName" DataField="ExpertFirstName">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="LastName" DataField="ExpertLastName">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Phone" DataField="ExpertPhone">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Email" DataField="ExpertEmail">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Address" DataField="ExpertAddress">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="City" DataField="ExpertCity">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Province" DataField="ExpertState">
                            <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ExpertPostalCode" HeaderText="PostalCode">
                        <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ExpertType" HeaderText="ExpertType">
                        <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ExpertIntroduce" HeaderText="Introduce">
                        <HeaderStyle CssClass="DataDetailsHeaderStyle" />
                            <ItemStyle CssClass="DataDetailsItemStyle" />
                        </asp:BoundField>
                    </Fields>
                </asp:DetailsView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnExpertInfoBack" runat="server" 
                                ImageUrl="~/Images/btnPublicBack.png" onclick="btnExpertInfoBack_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="ExpertsComment">
            <div class="TopStyle" style="color:#FE9400;">
                Expert's Comment
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="gvExpertComment" runat="server" AutoGenerateColumns="False" 
                    CssClass="DataViewStyle" GridLines="None">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label1" runat="server" Text="Poster"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LBPoster" runat="server" onclick="LBPoster_Click" style="color:#0000CC; text-decoration: none;"
                                    Text='<%# Eval("EnterpriseId") %>' 
                                    CommandArgument='<%# Eval("EnterpriseId") %>' CausesValidation="False"></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#FE9400"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label2" runat="server" Text="Comment"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("ExpertCommentDetail") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="280px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#FE9400"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="Label4" runat="server" Text="Date"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("ExpertCommentDate") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#FE9400"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
        </div>
        <div id="PostExpertAComment">
            <div class="TopStyle" style="color:#FE9400;">
                Post Expert A Comment
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtExpertComment" runat="server" TextMode="MultiLine" 
                                CssClass="TextboxStyle" Height="150px" Width="490px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 530px">
                            &nbsp;
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvExpertComment" runat="server" ErrorMessage="Required."
                                Font-Bold="True" Font-Size="Small" ForeColor="#CC0000" 
                                ControlToValidate="txtExpertComment"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnExpertCommentSubmit" runat="server" 
                                ImageUrl="~/Images/btnPublicSubmit.png" 
                                onclick="btnExpertCommentSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
